package com.qdu.service.impl;

import com.qdu.entity.Replyinfo;
import com.qdu.mapper.ReplyinfoMapper;
import com.qdu.service.ReplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ReplyServiceImpl implements ReplyService {

    @Autowired
    private ReplyinfoMapper replyinfoMapper;

    @Override
    public void deleteByPrimaryKey(String rid) {
        replyinfoMapper.deleteByPrimaryKey(rid);
    }

    @Override
    public void insert(Replyinfo record) {
        replyinfoMapper.insert(record);
    }

    @Override
    public void insertSelective(Replyinfo record) {
        replyinfoMapper.insertSelective(record);
    }

    @Override
    public Replyinfo selectByPrimaryKey(String rid) {
        return replyinfoMapper.selectByPrimaryKey(rid);
    }

    @Override
    public List<Replyinfo> selectByCid(String cid) {
        return replyinfoMapper.selectByCid(cid);
    }

    @Override
    public List<Replyinfo> selectByPid(String pid) {
        return replyinfoMapper.selectByPid(pid);
    }

    @Override
    public List<Replyinfo> selectByUid(String uid) {
        return replyinfoMapper.selectByUid(uid);
    }

    /*@Override
    public void updateByPrimaryKeySelective(Replyinfo record) {
        replyinfoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public void updateByPrimaryKey(Replyinfo record) {
        replyinfoMapper.updateByPrimaryKey(record);
    }*/
}
